import request from '@/utils/request'




const api_name = "/admin/system/sysMenu"

export const updateMenu = (data) =>{
    return request({
        url:`${api_name}/updataMenu`,
        method:"PUT",
        data
    })
}


export const deleteMenu = (data) =>{
    return request({
        url:`${api_name}/removeMenu`,
        method:"DELETE",
        data
    })
}
export  const findSysMenuTree = ()=>{
    return request({
        url:`${api_name}/findNodes`,
        method:'GET',
    })
}
export  const addMenu = (data)=>{
    return request({
        url:`${api_name}/addMenu`,
        method:'POST',
        data
    })
}